package com.beasts.ant.page.entity;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author cn_zkn
 * @date 20/04/2018 10:58 AM
 * @since 1.0
 */
@Embeddable
public class APCommonOperationPrimaryKey implements Serializable {
    private String id;

    private String appId;

    private String pageId;

    private String userId;

    public APCommonOperationPrimaryKey() {}

    public APCommonOperationPrimaryKey(String id, String appId, String pageId, String userId) {
        this.id=id;
        this.appId=appId;
        this.pageId =pageId;
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "APCommonOperationPrimaryKey [id=" + id + ", appId=" + appId + ", pageId=" + pageId + ", userId=" + userId +"]";
    }

}
